package com.shfl.task.component;

import org.springframework.stereotype.Component;


@Component
public class RemoteTaskComponent {

    private RemoteComponent remoteComponent;

    public RemoteTaskComponent(RemoteComponent remoteComponent) {
        this.remoteComponent = remoteComponent;
    }


    public void task(SendInfo sendInfo)throws Exception  {
        remoteComponent.send(sendInfo);
    }
}
